import styles from './style.module.scss';
import BarGraph from "@/pages/home/bar-graph";
export default function (props: {type: 'amount'|'profit'}){

  const typeWord = props.type === 'amount' ? '额' : '利润';

  return (
    <div className={styles.saleInfo}>
      <div className={styles.title}>销售{typeWord}</div>
      <div className={styles.amount}>9.50</div>
      <BarGraph type={typeWord}/>
    </div>
  );
}
